<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class Gallery_model extends Model {

    function __construct()
    {
        // Call the Model constructor
        parent::__construct();
    }
    
    function get_gallery_list($ishomebanner=0)
    {
        
        $where=" where ishomebanner={$ishomebanner} ";
        
        $sql = "select *           
                    from tbl_imagegallery {$where} order by image_title";
        $res = $this->db->query($sql);
        if($res->num_rows() > 0) {
             return $res_result = $res->result_array();
        } else {
            return FALSE;
        }
    }    
}
?>
